/**
 * 驱动实体
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.bcDrive',['water.common.AJAXService']);
	
	module.service('$bcDriveService',function($AJAXService){
				
		/**
		 * 获取驱动
		 */
		this.getList = function(key){
			var promise = $AJAXService.post("/BCDrive/getList");
			return promise;
		}
		
		/**
		 * 获取驱动参数元数据
		 */
		this.getParameterMetadata = function(key){
			var promise = $AJAXService.post("/BCDrive/getParameterMetadata",{driveId:key});
			return promise;
		}
		
	})
}(window, angular));